Deserialization

Java Beans components can be stored by serialization. This means that their complete state can be saved in a binary format. Visaj allows you to specify that a component should be initialized by deserialization. If you select this option, then the generated code will have just one line for the component - code to read the binary data which represents the component's state in from a classloader resource, and to use this data to construct the object. All property settings are included in the binary file, so no code is generated for them.

When you generate code, Visaj will save the component in serialized form into the same directory as the code file. Because the serialized data is read in as a classloader resource, it should be kept with the class files; see the user manual for more information.